#ifndef CAINIAOJIAOCHENG_H
#define CAINIAOJIAOCHENG_H

#include "wiki.h"

class CaiNiaoJiaoCheng : public Wiki
{
public:
    CaiNiaoJiaoCheng();

    QStringList allcategories();
    QStringList categories_pages(const QString &category);

    // WikiEngine interface
public:
    QString name() override;
    QString prefix() override;

    WIKI_AUTOLOAD
    QStringList searching(const QString &text) override;
    QString content(const QString &text) override;

    bool interactive(const QString &text) override;
    virtual bool interactive_running();
    virtual void interactive_restore();

private:
    QMap<QString, QStringList> m_categories_pages;
    QString m_key;
};

#endif // CAINIAOJIAOCHENG_H
